﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

namespace TuyenDungViecLam.User_control_VN
{
    public partial class Log_Out : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void Page_PreRender(object sender, EventArgs e)
        {
            if (Session["Role"].ToString() == "NguoiTimViec")
            {
                lbtaikhoan.Text = Session["UserName"].ToString();
                lbvaitro.Text = "Người tìm việc";
                Panel1.Visible = true;
            }
            else
            {
                Panel1.Visible = false;
            }
        }
        protected void LoginStatus1_LoggingOut(object sender, LoginCancelEventArgs e)
        {
            Session["Role"] = "";
            Session["UserID"] = "";
            Session["UserName"] = "";
            e.Cancel = false;
        }
    }
}